using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace WeatherRouter.Model
{
	/// <summary>
	/// Represents a subscriber
	/// </summary>    
	public class Subscriber
	{
        private string _name;
        private string _phone;  
        private string _email;   
        private bool _enabled;
        private bool _transliterate;
        private List<Action> _actions;        

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public bool Enabled
        {
            get { return _enabled; }
            set { _enabled = value; }
        }

        public bool Transliterate
        {
            get { return _transliterate; }
            set { _transliterate = value; }
        }

        public List<Action> Actions
        {
            get { return _actions; }
            set { _actions = value; }
        }

        public Subscriber()
        {
            _actions = new List<Action>();
        }

        public Subscriber(string name, string phone, string email)
            : this(name, phone, email, true)
        { }        

		public Subscriber(string name, string phone, string email, bool enabled) : this()
		{
			_name = name;
			_phone = phone;
			_email = email;
            _enabled = enabled;
		}
	}
}
